package com.etc.单例模式.双检锁;

/**
 * @Author 静静
 * @Description
 * @Date 2021/3/7  16:18
 **/
public class ququ {

    private static volatile ququ instance;

    private ququ(){}

    public static ququ getInstance(){
        if(instance == null ){
            synchronized (ququ.class){
                if(instance == null){
                    instance = new ququ();
                }
            }
        }
        return instance;
    }

    public  void QuquInfo(){
        System.out.println("我很美");
    }
}
